/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gr.anagnosg.general.utils;

import java.io.File;
import java.io.FilenameFilter;

/**
 *
 * @author anagnosg
 */
public class FileExtensionFilter implements FilenameFilter{
    private String ext ;
         
        public FileExtensionFilter(String extp){
            this.ext = extp;
        }
        
        public boolean accept(File dir, String name) {
            return name.indexOf(ext)>=0;
        }
}